#
# Be sure to run `pod lib lint BXHShare.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'BXHShare'
  s.version          = '0.1.3'
  s.summary          = 'A short description of BXHShare.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/buxh/bxhshare.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'xiaouhu' => '542601704@qq.com' }
  s.source           = { :git => 'https://gitee.com/buxh/bxhshare.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

#  s.source_files = 'BXHShare/Classes/**/*'
  s.subspec 'BXHBaseShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHBaseShare/*'
  end
  s.subspec 'BXHShareManger' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHShareManger/*'
      ss.dependency 'BXHShare/BXHBaseShare'
  end
  s.subspec 'BXHQQShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHQQShare/*'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.ios.vendored_frameworks = 'BXHShare/Classes/BXHQQShare/TencentOpenAPI.framework'
      ss.frameworks = 'Security','SystemConfiguration','CoreTelephony'
      ss.libraries = 'iconv','sqlite3','stdc++','z'
  end
  s.subspec 'BXHWBShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHWBShare/*'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.dependency 'Weibo_SDK'
  end
  s.subspec 'BXHWXSHare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHWXSHare/*'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.dependency 'WechatOpenSDK'
  end
  s.subspec 'BXHMailShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHMailShare/*'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.frameworks = 'MessageUI'
  end
  s.subspec 'BXHMessageShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHMessageShare/*'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.frameworks = 'MessageUI'
  end
  s.subspec 'BXHAliShare' do |ss|
      ss.source_files = 'BXHShare/Classes/BXHAliShare/*.{h,m}'
      ss.dependency 'BXHShare/BXHBaseShare'
      ss.vendored_libraries  = 'BXHShare/Classes/BXHAliShare/libAPOpenSdk.a'
  end


  # s.resource_bundles = {
  #   'BXHShare' => ['BXHShare/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
